package com.fan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fan.entity.Teacher;
import com.sixth.entity.EduTeacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TeacherDao extends BaseMapper<Teacher> {
    //   通过讲师名称查询讲师信息
    Teacher queryAllTeacherBYTeacherName(String teacherName);
    @Select("select * from edu_teacher where mobile=#{teacherMobile}")
    List<EduTeacher> findTeacherBYMobile(@Param("teacherMobile") String teacherMobile);
}